package com.aspose.cells.b.a;

import java.text.NumberFormat;
import java.text.ParseException;

public class zp {
   public static long a(String var0, com.aspose.cells.b.a.c.za var1) {
      try {
         if (var1.c()) {
            return Long.parseLong(var0.trim());
         } else {
            NumberFormat var2 = NumberFormat.getInstance(var1.h());
            return (Long)var2.parse(var0.trim());
         }
      } catch (ParseException var3) {
         throw new NumberFormatException("Failed to parse string[]" + var0 + " into a number");
      }
   }
}
